package cn.wolfcode.wolf2w.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Setter
@Getter
@Document("personal")
@ToString
public class Personal extends BaseDomain {

    private String userId;  //被访问者

    private List<String> visitorIds ;  //访问者用户id   总的访问量就是列表的长度  无需专门设置

    private Integer todayViewNum;

    @Transient
    private List<UserInfo> userInfos;  //访问者

}
